import QtQuick 2.0
import QtQuick.Window 2.2
import QtQuick.Controls 2.12
import QtQuick.Particles 2.12

Item {
    Rectangle {
        anchors.horizontalCenter: parent.horizontalCenter
        id: root
        width: 900
        height: 600
        ParticleSystem {
            id: particleSystem
        }
        Emitter {
            id: emitter
            anchors.fill: parent

            system: particleSystem
            emitRate: 10 // number of emit per second
            lifeSpan: 2000
            lifeSpanVariation: 1000
            size: 32
            endSize: 48
        }
    }

    ImageParticle {
        source: "qrc:/img/res/logo.png"
        system: particleSystem
        rotation: 5
        rotationVariation: -5
        rotationVelocity: 10
        rotationVelocityVariation: 5
        entryEffect: ImageParticle.Fade
    }
}
